home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / ARSRC21.ZIP / AR256H.CPP < prev    next >
C/C++ Source or Header  |  1995-05-18  |  1KB  |  54 lines

  1. // classes for arena
  2.  
  3. class square{
  4.             public:
  5.                 unsigned char land;    //terr type
  6.                 unsigned char whatside;   //side of monster
  7.                 unsigned char whatmonster;  //num of monster
  8.                 unsigned char whose;    //side of trees
  9.                 //unsigned char castle;   //123456789 for 9 castle squares else 0
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17. };
  18.  
  19. class monster{
  20.                 public:
  21.                 unsigned char graphic;    //what tile to show
  22.                 unsigned char whatside;   // playnumber = curpla
  23.                 unsigned char id;         // what sort it is
  24.                 unsigned char status;        // 1=just plain alive 0x11 = corpse 2=illusion 3=undead
  25.                 unsigned char mshots;
  26.                 unsigned char fire;  //1=arrow 2=beam 3=ball
  27.                 unsigned char mmoves;
  28.                 unsigned char attack;
  29.                 unsigned char defend;
  30.                 unsigned char spellnum;
  31.                 unsigned char spells[28];
  32.                 unsigned char x,y;
  33.                 unsigned char fly;
  34.                 unsigned char range;
  35.                 unsigned char immunities;  //if 1,2,or 3 resists that kind of shot.
  36.                 char alignment;       //1=good -1=evil
  37.                 char name[18];
  38.                 char atmes[20];
  39.                 char defmes[20];
  40.                 char diemes[20];
  41.                 char shotmes[20];
  42.                 int power();
  43. };
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.